home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / enigma / earcd / emula / arosdv19.lha / AROS / config / linux / makefile < prev   
Makefile  |  1996-10-30  |  675b  |  33 lines

  1. TOP=../..
  2.  
  3. USER_INCLUDES=-I$(TOP)/graphics -I$(TOP)/intuition
  4.  
  5. include $(TOP)/config/make.cfg
  6.  
  7. FILES = graphics_driver intuition_driver
  8.  
  9. all: setup \
  10.     $(foreach f,$(FILES),$(OSGENDIR)/$(f).o)
  11.  
  12. setup :
  13.     @if [ ! -d $(OSGENDIR) ]; then $(MKDIR) $(OSGENDIR) ; else true ; fi
  14.  
  15. clean:
  16.     $(RM) $(OSGENDIR) *.err
  17.  
  18. config:
  19.     @echo "Configuring for Linux..."
  20.  
  21. $(OSGENDIR)/%.o: %.c
  22.     $(CC) $(CFLAGS) $(X11CCFLAGS) $< -c -o $@ 2>&1|tee $*.err
  23.     if test ! -s $*.err; then rm $*.err ; else true ; fi
  24.  
  25. $(OSGENDIR)/%.d: %.c
  26.     @if [ ! -d $(OSGENDIR) ]; then $(MKDIR) $(OSGENDIR) ; else true ; fi
  27.     @$(RM) $@
  28.     @touch $@
  29.     $(MKDEPEND) -p$(OSGENDIR)/
  30.  
  31. include $(foreach f,$(FILES),$(OSGENDIR)/$(f).d)
  32.  
  33.